var mongoose = require('mongoose');
var newsSchema = new mongoose.Schema({ //定义数据模型
    title : String,
    origin : String,
    type : String,
    thumb : String,
    sCont : String,
    content : String,
    createTime: {
        type: Date,
        default: Date.now
    },
    newsId : { type : Number, default: 0}
});
exports.news = mongoose.model('news', newsSchema, 'news'); // 名称  模型  集合名称
